package com.atguigu.common.exception;


public enum BizCodeEnum {

    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    VAILD_EXCEPTION(10001,"参数格式校验失败"),
    TO_MANY_REQUEST(10002,"请求过多"),
    VAILD_SMS_EXCEPTION(10002,"短信验证码发送频率太高"),
    USERNAME_EXEIT_EXCEPTION(15001,"用户名已存在"),
    PHONE_EXEIT_EXCEPTION(15002,"手机号已存在"),
    PHONE_PASSWORD_EXCEPTION(15003,"账号密码错误"),
    NO_STOCK_EXCEPTION(21000,"商品库存不足"),
    PRODUCT_UP_EXCEPTION(11000,"商品上架异常");



    private int code;
    private String messgae;

     BizCodeEnum(int code,String messgae){
        this.code=code;
        this.messgae=messgae;
    }
    public int getCode() {
        return code;
    }

    public String getMessgae() {
        return messgae;
    }
}
